<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "sys_shop".
 *
 * @property integer $shop_id
 * @property integer $shop_uid
 * @property string $shop_name
 * @property integer $status
 * @property string $start_time
 * @property string $end_time
 * @property integer $boss_uid
 * @property string $boss_login_name
 * @property integer $agent_uid
 * @property string $agent_login_name
 * @property string $create_time
 * @property integer $isopen_online
 * @property string $remark
 */
class SysShop extends \yii\db\ActiveRecord
{
	
	/**
	 * 正常
	 * @var integer
	 */
	const NORMAL = 1;
	/**
	 * 删除
	 * @var integer
	 */
	const DELETE = 0;
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'sys_shop';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['shop_uid', 'shop_name', 'boss_uid', 'boss_login_name', 'agent_uid', 'agent_login_name'], 'required'],
            [['shop_uid', 'status', 'boss_uid', 'agent_uid', 'isopen_online'], 'integer'],
            [['start_time', 'end_time', 'create_time'], 'safe'],
            [['shop_name', 'boss_login_name', 'agent_login_name', 'remark'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'shop_id' => 'Shop ID',
            'shop_uid' => 'Shop Uid',
            'shop_name' => 'Shop Name',
            'status' => 'Status',
            'start_time' => 'Start Time',
            'end_time' => 'End Time',
            'boss_uid' => 'Boss Uid',
            'boss_login_name' => 'Boss Login Name',
            'agent_uid' => 'Agent Uid',
            'agent_login_name' => 'Agent Login Name',
            'create_time' => 'Create Time',
            'isopen_online' => 'Isopen Online',
            'remark' => 'Remark',
        ];
    }
    
}
